package com.pyip.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pyip.reggie.Entity.Dish;
import com.pyip.reggie.common.R;
import com.pyip.reggie.dto.DishDto;

import java.util.List;

public interface DishService extends IService<Dish> {
    Boolean saveWithFlavor(DishDto dishDto);

    R<Page<DishDto>> getPage(int page, int pageSize, String name);

    R<DishDto> getByDishId(Long id);

    R<String> updateDishAndDishFlavor(DishDto dishDto);

    R<List<DishDto>> getAllDishByCategoryId(Dish dish);
}
